<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<div class="news">
			
		</div>
	</body>

	<script src="js/yingshi.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		var news = document.querySelector(".news");
		var data = yingshi;
		var str = "";
		for (var i=0;i<data.length;i++) {
			var title = data[i].title;
			var imgs = data[i].thumbnail_pic_s;
			var urls = data[i].url;
			if(imgs==""){
				imgs = "img/qglz.webp"
			}
			str += "<h1>"+title+"</h1><img src = '"+imgs+"' /><a href='"+urls+"'>查看</a>";

		}
		news.innerHTML = str;
		
	</script>
</html>
